<?php

namespace Database\Factories;

use App\Helpers\Faker;
use Illuminate\Database\Eloquent\Factories\Factory;

class EnterpriseFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        $types = [
            '车企' ,
            '储能企',
            '充电桩运营商',
            '保险公司'
        ];
        
        return [
            'name' => Faker::enterprises('random'),
            'contact' => $this->faker->unique()->name(),
            'contact_phone' => $this->faker->unique()->phoneNumber(),
            'type' => $this->faker->randomElements($types, mt_rand(1,4)),
        ];
    }
}
